//
//  e7externs.h
//  e7engine
//
//  Created by cc on 12-2-28.
//  Copyright (c) 2012年 cc. All rights reserved.
//

#ifndef e7engine_e7externs_h
#define e7engine_e7externs_h

#include "e7system.h"

namespace e7engine {

#define __DEBUG__

#define __MACOS__


#define SAFE_FREE(p)            if (0 != (p)) { free (p) ; (p) = 0 ; }
#define SAFE_DELETE(p)          if (0 != (p)) { delete (p) ; (p) = 0 ; }
#define SAFE_RELEASE(p)         if (0 != (p)) { (p)->release() ; (p) = 0 ; }
#define SAFE_DELETE_ARR(p)      if (0 != (p)) { delete[] (p) ; (p) = 0 ; }

#define __ASSERT(x)             assert(x)

#define __ENTER_FUNCTION__      try {
#define __EXIT_FUNCTION__       } catch(...) {}

}


#endif


























